/**
 * DomWon
 * Created with Intellij IDEA.
 * Description:
 * User:WEI
 * Date:2023/3/15
 * Time:15:29
 */
class Dog {
    public String name;
    public int age;
    public String color;

    public void eat() {
        System.out.println("吃饭！");
    }

    public void sleep() {
        System.out.println("睡觉！");
    }
}

public class TestDemo {
    public static void main(String[] args) {
        Dog jinmao = new Dog();
        jinmao.age = 10;
        System.out.println(jinmao.age);
        jinmao.sleep();
        Dog hashiqi = new Dog();
    }
}
